﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Warehouse.Domain;
using Warehouse.Infrstructre.Interface;

namespace Warehouse.Infrstructre.Imp
{
    /// <summary>
    /// 仓库盘点接口
    /// </summary>
    public class InventoryRepository : BaseRepository<Inventory>, IInventoryRepository
    {
        public InventoryRepository(EFCoreDBcontext db) : base(db)
        {
        }
        //添加
        public async Task<int> AddAsync(Inventory t)
        {
            return await base.AddAsync(t);
        }
        //显示

        public async Task<List<Inventory>> GetAllAsyns()
        {
            return await base.GetAllAsyns();
        }
        //查询

        public async Task<List<Inventory>> GetAsync(Expression<Func<Inventory, bool>> expre)
        {
            return await base.GetAsync(expre);
        }
        //反填

        public async Task<Inventory> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }
        //修改

        public async Task<int> UpdateAsync(Inventory t)
        {
            return await base.UpdateAsync(t);
        }
        //删除

        public async Task<int> RemoveAsync(Inventory t)
        {
            return await base.RemoveAsync(t);

        }








    }
}
